//
//  NovelModel.m
//  数据库
//
//  Created by 霍文轩 on 15/8/14.
//  Copyright (c) 2015年 霍文轩. All rights reserved.
//

#import "CollectProgramaModel.h"

@implementation CollectProgramaModel

-(void)dealloc{
    [_c_url release];
    [_c_title release];
    [super dealloc];
}
-(instancetype)initWithId:(long long)id title:(NSString *)title url:(NSString *)url height:(NSInteger)height width:(NSInteger)width{
    self = [super init];
    if(self){
        self.c_title = title;
        self.c_id = id;
        self.c_url = url;
        self.c_height = height;
        self.c_width = width;
    }
    return  self;
}
+(instancetype)collectModelWithId:(long long)id title:(NSString *)title url:(NSString *)url height:(NSInteger)height width:(NSInteger)width{
    CollectProgramaModel * collect = [[CollectProgramaModel alloc] initWithId:id title:title url:url height:height width:width];
    return [collect autorelease];
}
@end
